using Rsd.Dudu;
using Rsd.Dudu.ModelProvider;
using Rsd.Dudu.ORM;
using Rsd.Faith.Core;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;

namespace Rsd.Faith.Models
{
    [Table("biz_资金使用分摊表", "biz__zi_jin_shi_yong_fen_tan_biao", "id")]
    [Serializable]
    public class UsingZiJinShiYongFenTanBiaoModel : Rsd.Faith.Core.ModelBase
    {

        /// <summary>
        /// 申请单号
        /// </summary>
        [TableIndex(TableIndexType.Normal, TableIndexUsing.BTree)]
        [StringType("shen_qing_dan_hao", "申请单号", 20, 20)]
        [DisplayName("申请单号")]
        public string ShenQingDanHao { get; set; }

        /// <summary>
        /// 拨付编号
        /// </summary>
        [TableIndex(TableIndexType.Normal, TableIndexUsing.BTree)]
        [StringType("hua_bo_bian_hao", "拨付编号", 22, 20)]
        [DisplayName("拨付编号")]
        public string HuaBoBianHao { get; set; }

        /// <summary>
        /// 小区编号
        /// </summary>
        [TableIndex(TableIndexType.Normal, TableIndexUsing.BTree)]
        [StringType("xiao_qu_bian_hao", "小区编号", 23, 20)]
        [DisplayName("小区编号")]
        public string XiaoQuBianHao { get; set; }

        /// <summary>
        /// 所属期
        /// </summary>
        [StringType("suo_shu_qi", "所属期", 24, 20)]
        [DisplayName("所属期")]
        public string SuoShuQi { get; set; }
        /// <summary>
        /// 分摊金额
        /// </summary>
        [NumericType("fen_tan_jin_e", "分摊金额", 26, 20, 2)]
        [DisplayName("分摊金额")]
        public decimal FenTanJinE { get; set; }

        /// <summary>
        /// 分摊日期
        /// </summary>
        [DateTimeType("fen_tan_ri_qi", "分摊日期", 28)]
        [DisplayName("分摊日期")]
        public DateTime FenTanRiQi { get; set; }

        /// <summary>
        /// 划拨日期 分户流 记账日期
        /// </summary>
        [DateTimeType("hua_bo_ri_qi", "划拨日期", 29)]
        [DisplayName("划拨日期")]
        public DateTime HuaBoRiQi { get; set; }

        /// <summary>
        /// 房屋编号
        /// </summary>
        [TableIndex(TableIndexType.Normal, TableIndexUsing.BTree)]
        [StringType("fang_wu_bian_hao", "房屋编号", 30, 50)]
        [DisplayName("房屋编号")]
        public string FangWuBianHao { get; set; }

        /// <summary>
        /// 建筑面积
        /// </summary>
        [NumericType("jian_zhu_mian_ji", "建筑面积", 32, 20, 2)]
        [DisplayName("建筑面积")]
        public decimal JianZhuMianJi { get; set; }
        /// <summary>
        /// 分摊后余额
        /// </summary>
        [NumericType("fen_tan_hou_yu_e", "分摊后余额", 34, 20, 2)]
        [DisplayName("分摊后余额")]
        public decimal FenTanHouYuE { get; set; }
        
        /// <summary>
        /// 状态
        /// </summary>
        [StringType("zhuang_tai", "状态", 36, 20)]
        [DisplayName("状态")]
        public FenTanZhuangTai ZhuangTai { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public UsingZiJinShiYongFenTanBiaoModel()
        {

        }

    }
}
